package view;

import java.awt.CardLayout;

import javax.swing.JFrame;
/**
 * This is the class that holds every single panel and menu
 * in the game and knows how to switch between different
 * menus.
 * 
 * @author Stephanie
 *
 */
public class MainFrame extends JFrame {
	
	private CardLayout cl;
	
	public MainFrame( String s ) {
		super(s);
		setSize(810,630);
		setResizable(false);
		cl = new CardLayout();
		setLayout(cl);
		setVisible(true);
                this.requestFocus();
                this.addKeyListener(new controller.KeyController());
	}
	
	public void changeActivePanel(String s) {
		cl.show(this.getContentPane(), s);
	}

}
